/**
 * Free software.
 */

package org.nanhill.support.hibernate.search;

import org.hibernate.Session;
import org.nanhill.commons.pattern.search.AbstractSearchVisitor;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-11-13
 */
public abstract class HibernateSearchVisitor extends AbstractSearchVisitor {
	private Session session;

	public HibernateSearchVisitor() {
		super();
	}

	public HibernateSearchVisitor(int start, int size) {
		super(start, size);
	}

	public HibernateSearchVisitor(Session session) {
		this.session = session;
	}

	public HibernateSearchVisitor(Session session, int start, int size) {
		this(start, size);
		this.session = session;
	}

	protected void setSession(Session session) {
		this.session = session;
	}

	protected Session getSession() {
		return session;
	}

}
